import { Result, Button } from "antd";
import React from "react";
import { useNavigate } from "react-router-dom";

const NoFoundPage: React.FC = () => {
    const navigate = useNavigate();
    const handleBack = () => {
        navigate("/login");
    };
    return (
        <>
            <Result
                status="success"
                title="访问的页面不存在"
                extra={[
                    <Button type="primary" key="console" onClick={handleBack}>
                        返回登录页
                    </Button>,
                ]}
            />
        </>
    );
};

export default NoFoundPage;
